package com.huitone.gddw.common;

import java.util.Arrays;
import java.util.List;

/**
 * 定义常量类
 * @author wuluodan
 *
 */
public class ComConstant {

	/**
	 * 定义平台所有参数
	 */
	public static final String SERVICE_CODE_DEF = "1"; 		// 短语业务编码定义
	public static final String SVR_NODE_CODE_RLT = "2"; 	// 业务端业务编码管理
	public static final String REPEAT_RULE = "3"; 			// 重复短信过滤规则
	public static final String BLACKUSE = "4"; 				// 黑名单用户
	public static final String SENSITIVE = "5"; 			// 敏感词过滤
	public static final String INVALIDUSE = "6"; 			// 无效用户
	public static final String SVR_ROUTE_RULE = "7"; 		// 短信业务路由规则表
	public static final String AFFIX_RULE = "8"; 			// 附加条件规则表
	public static final String FORBID_RULE = "9"; 			// 禁发时段规则表
	public static final String USER_ROUTE_RULE = "10"; 		// 号段路由规则表
	public static final String PRI_ALLOC = "11"; 			// 优先级分配表
	public static final String MO_INS = "12"; 				// 上行短信指令
	public static final String SM_SIGN = "13"; 				// 短信签名管理表
	public static final String LINK_SEND_PRO = "14"; 		// 通道可发送省份表
	public static final String LINK_SEND_CORP = "15"; 		// 通道可发送运营商表
	public static final String PRI_RULE_DEF = "16"; 		// 优先级规则定义表
	public static final String GATE_DEF = "17"; 			// 短信网关通道定义
	public static final String GATE_SWTICH = "18"; 			// 短信网关双线切换日志
	public static final String REDUSE = "19"; 				// 红名单用户
	public static final String SM_LEVEL = "20"; 			// 短信接入分级
	public static final String VARTUAL_GATE_LINK = "21"; 	// 虚拟通道设置
	public static final String SM_MODULE = "22"; 			// 短信模板设置
	public static final String SM_CALL_TEST = "23"; 			// 短信拨测模板设置
	

	/**
	 * 定义导入的文件类型
	 */
	public static final String ERROR_MNG = "错误码";
	public static final String BLACK_USE = "黑名单";
	public static final String INVALID_USE = "无效用户";
	public static final String SMS_PHONE = "短信号码";
	public static final String RED_USE = "红名单";
	
	/**
	 * 监控配置
	 */
	public static final String HOST = "host"; 				// 主机
	public static final String BASIC = "basic"; 				// 系统信息
	public static final String HARDWARE = "hardware"; 			// 硬件信息
	public static final String TASK = "task"; 					// 任务信息
	public static final String RECUSE = "recuse"; 				// 资源使用信息
	public static final String PID = "proc"; 					// 进程使用资源
	public static final String HDISK = "hdisk"; 				// applications:磁盘信息
	public static final String HDISKUSE = "hdiskuse"; 				// 磁盘使用率
	public static final String HDISKNAME = "hdiskname"; 			// 磁盘名
	
	public static final String REDIS_CLUS = "redisclus"; 	// redis集群
	public static final String CLUSTER = "cluster"; 			// redis集群信息
	
	public static final String REDIS = "redis"; 			// redis服务
	
	public static final String RAC = "rac"; 				// oracle集群
	public static final String RACINFO = "racinfo"; 			// oracle集群信息
	
	public static final String TOMCAT = "tomcat"; 			// tomcat服务
	public static final String INFO = "info"; 					// tomcat信息
	
	public static final String FLOW = "flow"; 				// 流量监控
	
	// cpu使用
	public static final List<String> RECUSE_CPU = Arrays.asList("cpu", "cpuuser", "cpusys", "iowait");
	// 内存使用
	public static final List<String> RECUSE_MEM = Arrays.asList("memuse", "swapuse");
	// 网络使用
	public static final List<String> RECUSE_NET = Arrays.asList("recv", "send");
	// cpu负荷
	public static final List<String> RECUSE_CPULOAD = Arrays.asList("cpuload");
	
}
